package com.mk.legoscans2.data;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Bitmap;

import com.mk.legoscans2.Scan;

public class DummyApiRepository implements ApiRepository {

	private Scan _scan;
	
	public DummyApiRepository(){
		_scan = new Scan();
		_scan._scanId = "1";
		_scan._name = "name";
		_scan._boxNumber = 1;
		_scan._pageCount = 12;
		_scan._size = 123;
		_scan._theme = "theme";
		_scan._year = 1982;
	}
	
	public Scan getScan(String id) {
		return _scan;
	}

	public List<Scan> getScans() {
		
		ArrayList<Scan> scans = new ArrayList<Scan>();
		scans.add(_scan);
		return scans;
	}

	public List<Scan> getScansByTheme(String theme) {
		ArrayList<Scan> scans = new ArrayList<Scan>();
		scans.add(_scan);
		return scans;
	}

	public List<String> getThemes() {
		ArrayList<String> themes = new ArrayList<String>();
		themes.add("theme1");
		themes.add("theme2");
		return themes;
	}

	public Bitmap getImage(String scanId, int page) {
		return null;
	}

	public List<Scan> getScansByQuery(String query) {
		ArrayList<Scan> scans = new ArrayList<Scan>();
		scans.add(_scan);
		return scans;
	}

	public List<Scan> getScansByIds(List<String> scanIds) {
		ArrayList<Scan> scans = new ArrayList<Scan>();
		scans.add(_scan);
		return scans;
	}

}
